<div class="postulados index">
	<h2><?php __('Postulados');?></h2>	
	<span style="font-weight:bold; margin-left:30px; font-size:16px;">CONVOCATORIA:</span>
	<fieldset style="margin-left:40px; margin-right:40px; background:#F7F7CD;">
		<table style="background:#F7F7CD;text-align:justify">
			<tr>
				<td style="background:#F7F7CD; width:300px;"><span style="font-weight:bold; color:#D8531E;">Cargo: </span><?php echo $perfil['Perfile']['cargo'];?></td>
				<td style="background:#F7F7CD; width:300px;"><span style="font-weight:bold; color:#D8531E;">Area: </span><?php echo $perfil['Perfile']['area'];?></td>
				<td style="background:#F7F7CD; width:300px;"><span style="font-weight:bold; color:#D8531E;">Nivel Profesional: </span><?php echo $perfil['Perfile']['nivel_estudios'];?></td>
			</tr>
			<tr>
				<td style="background:#fff7b5;"><span style="font-weight:bold; color:#D8531E;">Salario: </span><?php echo $perfil['Convocatoria'][0]['salario'];?></td>
				<td style="background:#fff7b5;"><span style="font-weight:bold; color:#D8531E;">Tipo de Contrato: </span><?php echo $perfil['Convocatoria'][0]['tipo_contrato'];?></td>
				<td style="background:#fff7b5;"><span style="font-weight:bold; color:#D8531E;">Departamentos: </span><?php echo $listado_departamentos;?></td>
			</tr>
			<tr>
				<td style="background:#fff7b5;text-align:justify"><span style="font-weight:bold; color:#D8531E; ">Funci&oacute;n: </span><?php echo $perfil['Perfile']['funcion_basica'];?></td>
				<td style="background:#fff7b5;text-align:justify"><span style="font-weight:bold; color:#D8531E;">Experiencia: </span><?php echo $perfil['Perfile']['experiencia'];?></td>
				<td style="background:#fff7b5;text-align:justify"><span style="font-weight:bold; color:#D8531E;">Conocimientos Espec&iacute;ficos: </span><?php echo $perfil['Perfile']['conocimientos_especificos'];?></td>
			</tr>		
		</table>								
	</fieldset>	
	<table cellpadding="0" cellspacing="0">
	<tr>				
			<th><?php echo $this->Paginator->sort('nombres');?></th>
			<th><?php echo $this->Paginator->sort('apellidos');?></th>			
			<th><?php echo $this->Paginator->sort('documento');?></th>			
			<th><?php echo $this->Paginator->sort('telefono');?></th>
			<th><?php echo $this->Paginator->sort('celular');?></th>					
			<th><?php echo $this->Paginator->sort('carrera_id');?></th>
			<th><?php echo $this->Paginator->sort('nivel_estudio');?></th>			
			<th><?php echo $this->Paginator->sort('puntaje_academico');?></th>
			<th><?php echo $this->Paginator->sort('puntaje_experiencia');?></th>
			<th><?php echo $this->Paginator->sort('promedio');?></th>			
	</tr>
	<?php
	$i = 0;
	foreach ($postulados as $postulado):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}		
	?>
	<tr<?php echo $class;?>>	
		<td><?php echo $postulado['User']['nombres']; ?>&nbsp;</td>
		<td><?php echo $postulado['User']['apellidos']; ?>&nbsp;</td>		
		<td><?php echo $postulado['User']['username']; ?>&nbsp;</td>	
		<td><?php echo $postulado['User']['telefono']; ?>&nbsp;</td>
		<td><?php echo $postulado['User']['celular']; ?>&nbsp;</td>
		<td><?php // echo $postulado['Carrera']['nombre']; ?>&nbsp;</td>
		<td><?php echo $postulado['User']['nivel_estudio']; ?>&nbsp;</td>		
		<td style="text-align:center;"><?php echo $postulado['Postulado']['puntaje_academico']; ?>&nbsp;</td>
		<td style="text-align:center;"><?php echo $postulado['Postulado']['puntaje_experiencia']; ?>&nbsp;</td>		
		<td style="text-align:center;"><?php echo $postulado['promedio']; ?>&nbsp;</td>				
		<td>					
			<?php echo $this->Html->link($this->Html->image('edit.png', array('alt'=> __('Editar', true), 'border' => '0')),
										'../postulados/edit/'.$postulado['Postulado']['id']."/".$isUser,array('escape' => false));?>			
		</td>
		<td>					
			<?php echo $this->Html->link($this->Html->image('hv.png', array('alt'=> __('Hoja de Vida', true), 'border' => '0')),
										'../postulados/informe_hv/'.$postulado['Postulado']['id']."/".$postulado['Postulado']['convocatoria_id'],array('escape' => false));?>			
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Pagina %page% de %pages%, mostrando %current% registros de %count% , empezando en %start%, terminando en %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<?php
		echo $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));	
	?>
</div>